<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="keywords" content="">
	<meta name="description" content="">
	<title>操作日志详细</title>
	<link href="/static/css/bootstrap.min.css" rel="stylesheet" />
	<link rel="stylesheet" href="/static/include/css/style.css">
	<link href="/static/ajax/libs/jsonview/jquery.jsonview.css" rel="stylesheet" />
</head>

<body class="white-bg">
	<div class="wrapper wrapper-content animated fadeInRight ibox-content">
		<form class="form-horizontal m-t" id="signupForm">
			<div class="form-group">
				<label class="col-sm-3 control-label">类型：</label>
				<div class="col-sm-8">
					<select class="form-control" id="type" name="type" field="type" disabled>
					</select>
                </div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">标题：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="title" id="title" field="title" disabled>
                </div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">IP地址：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="remoteAddr" id="remoteAddr" field="remoteAddr" disabled>
                </div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">请求方式：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="method" id="method" field="method" disabled>
                </div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">客户端：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="serviceId" id="serviceId" field="serviceId" disabled>
                </div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">请求时间：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="time" id="time" field="time" disabled>
                </div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">创建时间：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="createTime" id="createTime" field="createTime" disabled>
                </div>
			</div>
		</form>
	</div>
	<script src="/static/include/js/footer.js"></script>
	<script src="/static/ajax/libs/jsonview/jquery.jsonview.js"></script>
	<script>
		$(function () {
			renderDictFilter('#type', 'log_type')
			var logId = getQueryString('id');
			roleDetail(logId);
			// var userAgent = [[${operLog.userAgent}]];
			// $("#userAgent").text(userAgent);
			// var params = [[${operLog.params}]];
			// $("#params").text(params);
			// var exception = [[${operLog.exception}]];
			// $("#exception").text(exception);
		});

		function roleDetail(id) {
			$.operate.get(api + '/admin/log/' + id, function (res) {
				// res.data.oper = oper
				applyDrawing('#signupForm', res.data)
			}, false)
		}
	</script>
</body>

</html>